#include <iostream>
#include <string>
#include <Windows.h>

using namespace std;
int wordToNumber(string word) {
    if (word == "zero") return 0;
    if (word == "one") return 1;
    if (word == "two") return 2;
    if (word == "three") return 3;
    if (word == "four") return 4;
    if (word == "five") return 5;
    if (word == "six") return 6;
    if (word == "seven") return 7;
    if (word == "eight") return 8;
    if (word == "nine") return 9;
    return -1;
}
int main()
{
    string line, word = "";
    getline(cin, line);
    line += " ";
    int wordsCount = 0;
    for (char ch : line)
    {
        if (ch == ' ')
        {
            if (word == "zero")
                wordsCount++;

            word.clear();
        }
        else
        {
            word += ch;
        }
        
    }

}
